<h1><?php echo $title;?></h1>
<?php echo form_open('admin/dashboard/createuser');?>
<table class="table-manipulate">
	<tr>
		<td>Firstname</td>
		<td>
		<?php 
			$data = array('name'=>'firstname','id'=>'firstname','size'=>25);
			echo form_input($data) ;?>
		</td>
	</tr>
	<tr>
		<td>Lastname</td>
		<td>
		<?php 
			$data = array('name'=>'lastname','id'=>'lastname','size'=>25);
			echo form_input($data) ;?>
		</td>
	</tr>
	<tr>
		<td>Gender</td>
		<td>
		<?php 
			$options = array('M' => 'Male', 'F' => 'Female');
			echo form_dropdown('gender',$options);?>
		</td>
	</tr>
	<tr>
		<td>Username</td>
		<td>
		<?php $data = array('name'=>'username','id'=>'username','size'=>25);
			echo form_input($data) ;?>
		</td>
	</tr>
	<tr>
		<td>Password</td>
		<td>
			<?php $data = array('name'=>'password','id'=>'password_create','size'=>25);
			echo form_password($data) ;?>
		</td>
	</tr>
	<tr>
		<td>Email</td>
		<td>
		<?php $data = array('name'=>'email','id'=>'email','size'=>25);
			echo form_input($data) ;?>
		</td>
	</tr>
	<tr>
		<td>Role</td>
		<td>
		<?php echo form_dropdown('role_id',$roles);?>
		</td>
	</tr>
	<tr>
		<td>Activate</td>
		<td>
		<?php 
			$options = array('1' => 'active', '0' => 'inactive');
			echo form_dropdown('activate',$options);?>
		</td>
	</tr>
</table>
<?php echo form_submit(array('class'=>'btn','name'=>'submit'),'Add User');?>
<?php echo form_close();?>